From: Jasper St. Pierre Date: Mon, 22 Apr 2013 22:14:02 +0000 (-0400) Subject: workspace: Recalculate window positions when we have no layout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4302 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e1de3973fe5282287237c6897b7f1213629cc531;p=gnome-shell.git workspace: Recalculate window positions when we have no layout If for any reason the current layout is invalidated, queue a reposition. https://bugzilla.gnome.org/show_bug.cgi?id=698622 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index a8d16ab19..8121c69cb 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -989,8 +989,7 @@ const Workspace = new Lang.Class({ Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() { this._dropRect.set_position(geom.x, geom.y); this._dropRect.set_size(geom.width, geom.height); - if (this._currentLayout != null) - this._updateWindowPositions(WindowPositionFlags.NONE); + this._updateWindowPositions(WindowPositionFlags.NONE); return false; })); }, @@ -1059,6 +1058,11 @@ const Workspace = new Lang.Class({ }, _updateWindowPositions: function(flags) { + if (this._currentLayout == null) { + this._recalculateWindowPositions(flags); + return; + } + let initialPositioning = flags & WindowPositionFlags.INITIAL; let animate = flags & WindowPositionFlags.ANIMATE;